package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class ProductThickPeriod {
    private String id;

    private String peiId;

    private String productCode;

    private String factoryName;

    private String thinFinalGuan;

    private String startTime;

    private String ximoLine;

    private String thickGuanCode;

    private String endTime;

    private String spendTime;

    private String thickFinalGuan;

    private String resverGuan;

    private String thickStatus;

    private String recordUserName;

    private String status;

    private String startCode;
    private String xjian;
    private String ltask;

    private Date createTime;

    private Date updateTime;

    private int count;

    private String banCi;
    private String gradeValue;

    private List<ProductThickPeriodTime> productThickPeriodTimes;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "未开始", "1", "进行中", "2", "已完成");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPeiId() {
        return peiId;
    }

    public void setPeiId(String peiId) {
        this.peiId = peiId == null ? null : peiId.trim();
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode == null ? null : productCode.trim();
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName == null ? null : factoryName.trim();
    }

    public String getThinFinalGuan() {
        return thinFinalGuan;
    }

    public void setThinFinalGuan(String thinFinalGuan) {
        this.thinFinalGuan = thinFinalGuan == null ? null : thinFinalGuan.trim();
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime == null ? null : startTime.trim();
    }

    public String getXimoLine() {
        return ximoLine;
    }

    public void setXimoLine(String ximoLine) {
        this.ximoLine = ximoLine == null ? null : ximoLine.trim();
    }

    public String getThickGuanCode() {
        return thickGuanCode;
    }

    public void setThickGuanCode(String thickGuanCode) {
        this.thickGuanCode = thickGuanCode == null ? null : thickGuanCode.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(String spendTime) {
        this.spendTime = spendTime == null ? null : spendTime.trim();
    }

    public String getThickFinalGuan() {
        return thickFinalGuan;
    }

    public void setThickFinalGuan(String thickFinalGuan) {
        this.thickFinalGuan = thickFinalGuan == null ? null : thickFinalGuan.trim();
    }

    public String getResverGuan() {
        return resverGuan;
    }

    public void setResverGuan(String resverGuan) {
        this.resverGuan = resverGuan == null ? null : resverGuan.trim();
    }

    public String getThickStatusCn() {
        return STATUSMAP.get(getThickStatus());
    }
    public String getThickStatus() {
        return thickStatus;
    }

    public void setThickStatus(String thickStatus) {
        this.thickStatus = thickStatus == null ? null : thickStatus.trim();
    }

    public String getRecordUserName() {
        return recordUserName;
    }

    public void setRecordUserName(String recordUserName) {
        this.recordUserName = recordUserName == null ? null : recordUserName.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<ProductThickPeriodTime> getProductThickPeriodTimes() {
        return productThickPeriodTimes;
    }

    public void setProductThickPeriodTimes(List<ProductThickPeriodTime> productThickPeriodTimes) {
        this.productThickPeriodTimes = productThickPeriodTimes;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getStartCode() {
        return startCode;
    }

    public void setStartCode(String startCode) {
        this.startCode = startCode;
    }

    public String getXjian() {
        return xjian;
    }

    public void setXjian(String xjian) {
        this.xjian = xjian;
    }

    public String getLtask() {
        return ltask;
    }

    public void setLtask(String ltask) {
        this.ltask = ltask;
    }

    public String getBanCi() {
        return banCi;
    }

    public void setBanCi(String banCi) {
        this.banCi = banCi;
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue;
    }
}